<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Proyecto de Matemática Discreta 2 - Parte II: DINIC: Referencia del Archivo auxiliar_network/auxiliar_network.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generado por Doxygen 1.7.4 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Buscar');
--></script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="UNCBL.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">Proyecto de Matemática Discreta 2 - Parte II: DINIC</div>
   <div id="projectbrief">Cálculo de flujo maximal sobre un network aplicando el algoritmo de Dinic</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Página&#160;principal</span></a></li>
      <li><a href="annotated.html"><span>Estructuras&#160;de&#160;Datos</span></a></li>
      <li class="current"><a href="files.html"><span>Archivos</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Buscar" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Lista&#160;de&#160;archivos</span></a></li>
      <li><a href="globals.html"><span>Globales</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('auxiliar__network_2auxiliar__network_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#typedef-members">'typedefs'</a> &#124;
<a href="#func-members">Funciones</a>  </div>
  <div class="headertitle">
<div class="title">Referencia del Archivo auxiliar_network/auxiliar_network.h</div>  </div>
</div>
<div class="contents">
<div class="textblock"><code>#include &quot;auxNodeEdge.h&quot;</code><br/>
</div><div class="textblock"><div class="dynheader">
Dependencia gráfica adjunta para auxiliar_network.h:</div>
<div class="dyncontent">
<div class="center"><img src="auxiliar__network_2auxiliar__network_8h__incl.png" border="0" usemap="#auxiliar__network_2auxiliar__network_8h" alt=""/></div>
<map name="auxiliar__network_2auxiliar__network_8h" id="auxiliar__network_2auxiliar__network_8h">
</map>
</div>
</div><div class="textblock"><div class="dynheader">
Gráfico de los archivos que directa o indirectamente incluyen a este archivo:</div>
<div class="dyncontent">
<div class="center"><img src="auxiliar__network_2auxiliar__network_8h__dep__incl.png" border="0" usemap="#auxiliar__network_2auxiliar__network_8hdep" alt=""/></div>
<map name="auxiliar__network_2auxiliar__network_8hdep" id="auxiliar__network_2auxiliar__network_8hdep">
<area shape="rect" id="node3" href="auxiliar__network_2auxiliar__network_8c.html" title="auxiliar_network/auxiliar_network.c" alt="" coords="5,83,229,112"/></map>
</div>
</div>
<p><a href="auxiliar__network_2auxiliar__network_8h_source.html">Ir al código fuente de este archivo.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="typedef-members"></a>
'typedefs'</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="structs_aux_net.html">sAuxNet</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="auxiliar__network_2auxiliar__network_8h.html#aa287cfa1f83f4b02e314bc1cb95be529">auxNet</a></td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Funciones</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structs_aux_net.html">auxNet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="auxiliar__network_2auxiliar__network_8h.html#a4dc461a3fbb4c406e18476e312247bc8">auxNetwork_create</a> (<a class="el" href="structs_network.html">network</a> net, const unsigned int label_s, const unsigned int label_t)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structs_aux_net.html">auxNet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="auxiliar__network_2auxiliar__network_8h.html#add83c5b097b2c85f6c89919e221e4ed7">auxNetwork_destroy</a> (<a class="el" href="structs_aux_net.html">auxNet</a> aNet)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structs_node_a_net.html">nodeANet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="auxiliar__network_2auxiliar__network_8h.html#a4c37cfcde5d6b49c6b64f7f22d1ea17e">auxNet_getSinkNode</a> (const <a class="el" href="structs_aux_net.html">auxNet</a> aNet)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structs_node_a_net.html">nodeANet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="auxiliar__network_2auxiliar__network_8h.html#ac621db26fe0fc9bc1ba7a5a722b82fd6">auxNetwork_addNode</a> (<a class="el" href="structs_aux_net.html">auxNet</a> aNet, const unsigned int label)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structs_node_a_net.html">nodeANet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="auxiliar__network_2auxiliar__network_8h.html#ae254416e68a30edb90eca5f88e3fdb10">auxNetwork_getNode</a> (const <a class="el" href="structs_aux_net.html">auxNet</a> aNet, const unsigned int label)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structs_edge_a_net.html">edgeANet</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="auxiliar__network_2auxiliar__network_8h.html#a85954192b21fdc37c324c5f05850b838">auxNetwork_getEdge</a> (const <a class="el" href="structs_aux_net.html">auxNet</a> aNet, const <a class="el" href="structs_node_a_net.html">nodeANet</a> orig, const <a class="el" href="structs_node_a_net.html">nodeANet</a> dst)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="auxiliar__network_2auxiliar__network_8h.html#a7dfc6d8d8a2eccf3cfb7030bfca92c9c">auxNetwork_printNodes</a> (const <a class="el" href="structs_aux_net.html">auxNet</a> aNet, unsigned int source)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="auxiliar__network_2auxiliar__network_8h.html#a2e14541b53a5fdc482eaa8a3276fcf4d">auxNetwork_print</a> (const <a class="el" href="structs_aux_net.html">auxNet</a> aNet)</td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Descripción detallada</h2>
<div class="textblock"></div><hr/><h2>Documentación de los 'typedefs'</h2>
<a class="anchor" id="aa287cfa1f83f4b02e314bc1cb95be529"></a><!-- doxytag: member="auxiliar_network.h::auxNet" ref="aa287cfa1f83f4b02e314bc1cb95be529" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="structs_aux_net.html">sAuxNet</a>* <a class="el" href="structs_aux_net.html">auxNet</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Documentación de las funciones</h2>
<a class="anchor" id="a4c37cfcde5d6b49c6b64f7f22d1ea17e"></a><!-- doxytag: member="auxiliar_network.h::auxNet_getSinkNode" ref="a4c37cfcde5d6b49c6b64f7f22d1ea17e" args="(const auxNet aNet)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structs_node_a_net.html">nodeANet</a> auxNet_getSinkNode </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structs_aux_net.html">auxNet</a>&#160;</td>
          <td class="paramname"><em>aNet</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Obtiene el nodo sumidero del network auxiliar. </p>
<dl><dt><b>Parámetros:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">aNet</td><td>Network auxiliar que puede o no contener al nodo sumidero. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Devuelve:</b></dt><dd>Nodo sumidero si está presente, o NULL en caso contrario. </dd></dl>

</div>
</div>
<a class="anchor" id="ac621db26fe0fc9bc1ba7a5a722b82fd6"></a><!-- doxytag: member="auxiliar_network.h::auxNetwork_addNode" ref="ac621db26fe0fc9bc1ba7a5a722b82fd6" args="(auxNet aNet, const unsigned int label)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structs_node_a_net.html">nodeANet</a> auxNetwork_addNode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structs_aux_net.html">auxNet</a>&#160;</td>
          <td class="paramname"><em>aNet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const unsigned int&#160;</td>
          <td class="paramname"><em>label</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Agrega al nodo identificado por la etiqueta 'label' al network auxiliar en el ultimo nivel. </p>
<dl><dt><b>Parámetros:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">aNet</td><td>Network auxiliar al que se agregará el nodo. </td></tr>
    <tr><td class="paramname">label</td><td>Etiqueta del nodo que quiere agregar. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Devuelve:</b></dt><dd>Nodo agregado. </dd></dl>

</div>
</div>
<a class="anchor" id="a4dc461a3fbb4c406e18476e312247bc8"></a><!-- doxytag: member="auxiliar_network.h::auxNetwork_create" ref="a4dc461a3fbb4c406e18476e312247bc8" args="(network net, const unsigned int label_s, const unsigned int label_t)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structs_aux_net.html">auxNet</a> auxNetwork_create </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structs_network.html">network</a>&#160;</td>
          <td class="paramname"><em>net</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const unsigned int&#160;</td>
          <td class="paramname"><em>label_s</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const unsigned int&#160;</td>
          <td class="paramname"><em>label_t</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Construye un nuevo network auxiliarpor niveles a partir del network 'net' usando una versión modificada del algoritmo BFS. </p>
<dl><dt><b>Parámetros:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">net</td><td>Network original. </td></tr>
    <tr><td class="paramname">label_s</td><td>Etiqueta que identifica al nodo fuente. </td></tr>
    <tr><td class="paramname">label_t</td><td>Etiqueta que identifica al nodo sumidero. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Devuelve:</b></dt><dd>Network auxiliar por niveles. </dd></dl>

</div>
</div>
<a class="anchor" id="add83c5b097b2c85f6c89919e221e4ed7"></a><!-- doxytag: member="auxiliar_network.h::auxNetwork_destroy" ref="add83c5b097b2c85f6c89919e221e4ed7" args="(auxNet aNet)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structs_aux_net.html">auxNet</a> auxNetwork_destroy </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structs_aux_net.html">auxNet</a>&#160;</td>
          <td class="paramname"><em>aNet</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Destruye un network auxiliar </p>
<dl><dt><b>Parámetros:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">aNet</td><td>Network auxiliar a destruir. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Devuelve:</b></dt><dd>NULL </dd></dl>

</div>
</div>
<a class="anchor" id="a85954192b21fdc37c324c5f05850b838"></a><!-- doxytag: member="auxiliar_network.h::auxNetwork_getEdge" ref="a85954192b21fdc37c324c5f05850b838" args="(const auxNet aNet, const nodeANet orig, const nodeANet dst)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structs_edge_a_net.html">edgeANet</a> auxNetwork_getEdge </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structs_aux_net.html">auxNet</a>&#160;</td>
          <td class="paramname"><em>aNet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structs_node_a_net.html">nodeANet</a>&#160;</td>
          <td class="paramname"><em>orig</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structs_node_a_net.html">nodeANet</a>&#160;</td>
          <td class="paramname"><em>dst</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Devuelve la arista (orig, dst) si está presente en el network auxiliar. </p>
<dl><dt><b>Parámetros:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">aNet</td><td>Network auxiliar. </td></tr>
    <tr><td class="paramname">orig</td><td>Nodo de origen. </td></tr>
    <tr><td class="paramname">dst</td><td>Nodo de destino. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Devuelve:</b></dt><dd>Arista (orig, dst) o NULL si no se encontró. </dd></dl>

</div>
</div>
<a class="anchor" id="ae254416e68a30edb90eca5f88e3fdb10"></a><!-- doxytag: member="auxiliar_network.h::auxNetwork_getNode" ref="ae254416e68a30edb90eca5f88e3fdb10" args="(const auxNet aNet, const unsigned int label)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structs_node_a_net.html">nodeANet</a> auxNetwork_getNode </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structs_aux_net.html">auxNet</a>&#160;</td>
          <td class="paramname"><em>aNet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const unsigned int&#160;</td>
          <td class="paramname"><em>label</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Devuelve el nodo identificado por la etiqueta 'label'. </p>
<dl><dt><b>Parámetros:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">aNet</td><td>Network auxiliar. </td></tr>
    <tr><td class="paramname">label</td><td>Etiqueta del nodo buscado. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Devuelve:</b></dt><dd>Nodo buscado o NULL si no se encontró. </dd></dl>

</div>
</div>
<a class="anchor" id="a2e14541b53a5fdc482eaa8a3276fcf4d"></a><!-- doxytag: member="auxiliar_network.h::auxNetwork_print" ref="a2e14541b53a5fdc482eaa8a3276fcf4d" args="(const auxNet aNet)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void auxNetwork_print </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structs_aux_net.html">auxNet</a>&#160;</td>
          <td class="paramname"><em>aNet</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Usada para Debug. Imprime información acerca del network auxiliar. </p>
<dl><dt><b>Parámetros:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">aNet</td><td>Network auxiliar. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a7dfc6d8d8a2eccf3cfb7030bfca92c9c"></a><!-- doxytag: member="auxiliar_network.h::auxNetwork_printNodes" ref="a7dfc6d8d8a2eccf3cfb7030bfca92c9c" args="(const auxNet aNet, unsigned int source)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void auxNetwork_printNodes </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structs_aux_net.html">auxNet</a>&#160;</td>
          <td class="paramname"><em>aNet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>source</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Imprime las etiquetas de los nodos como conjunto. </p>
<dl><dt><b>Parámetros:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">aNet</td><td>Network auxiliar a imprimir. </td></tr>
    <tr><td class="paramname">source</td><td>Nodo de origen del flujo. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="auxiliar__network_2auxiliar__network_8h.html">auxiliar_network.h</a>      </li>
      <li class="footer">Generado el Lunes, 6 de Junio de 2011 20:03:18 para Proyecto de Matemática Discreta 2 - Parte II: DINIC por&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Todo</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Estructuras de Datos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Archivos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Funciones</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>&apos;typedefs&apos;</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>&apos;defines&apos;</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


</body>
</html>
